<?php
/**
 * Created by PhpStorm.
 * User: user
 * Date: 2016/3/29
 * Time: 16:18
 */
use front\assets\AppAsset;
use yii\helpers\Url;

$base = AppAsset::register($this);
$baseUrl = $base->baseUrl;

$this->title = "退换货列表";

?>


<body class="u-bg1">

<div class="m-rpe">

    <h4 class="f-cb">
        <a href="javascript:;" class="z-on">我要申请</a>
        <a href="<?= Url::to(['returngoods/refund_list','page'=>0,'per-page'=>5])?>">进度查询</a>
    </h4>

    <?php foreach($orderInfo as $orders) {?>
    <p class="tit">订单编号：<?= $orders['order_char_id']?></p>
        <?php if (!empty($orders['item'])) {?>
            <?php foreach($orders['item'] as $item) {?>
                <?php if ($item['apply_num'] > 0) {?>
                    <?php for ($i = 0; $i < $item['apply_num']; $i ++) {?>
                    <div class="list">
                        <img src="<?= $item['product_pic_url']?>" />
                        <h6>
                            <a href="javascript:;"><?= $item['product_title']?></a><br />
                            数量：1<br />
                            <span>￥ <b><?= $item['price']?></b></span>
                        </h6>
                        <h5><a href="<?= Url::to(['returngoods/apply','order_id' => $item['order_id'],'product_id' => $item['product_id']])?>">申请</a></h5>
                    </div>
                    <?php }?>
                <?php }?>
            <?php }?>
        <?php }?>
    <?php }?>
</div>


</body>















